﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;


namespace System.ComponentModel
{
    /// <summary>
    /// Represents the event argument associated with a cancelable action.
    /// </summary>
    public class CancelEventArgs : EventArgs
    {

        private bool _canceled;

        /// <summary>
        /// Whether the action is to be canceled.
        /// </summary>
        public bool Canceled
        {
            get
            {
                return _canceled;
            }
            set
            {
                _canceled = value;
            }
        }
    }

    /// <summary>
    /// Represents the signature of an cancelable event handler.
    /// </summary>
    /// <param name="sender">The sender of the event.</param>
    /// <param name="e">The event argument associated with the event.</param>
    public delegate void CancelEventHandler(object sender, CancelEventArgs e);
}
